<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul{list-style: none;}
        li{float: left; margin: 50px;cursor: pointer;position: relative;top: 0;transition: 1s;}
        li:hover{top: -5px;box-shadow: 0px 5px 10px 3px #ccc;}
    </style>
</head>
<body>
    <ul>
        <li>
            <img src="./img/3.jpg" alt="">
        </li>
        <li>
            <img src="./img/3.jpg" alt="">
        </li>
    </ul>
</body>
</html>